<layout name='layout/main' />

<header class="am-header am-header-default">
	<div class="am-header-left am-header-nav">
	<a href="<{:U('Index/index')}>"><i class="am-header-icon am-icon-home"></i></a>
	</div>
	<h1 class="am-header-title">交强险信息</h1>
</header>

<p></p>

<div class="orderList">
	<div class="am-panel am-panel-default">
		<div class="am-panel-hd">订单编号：<{$list.order_no}><eq name="list.chechuanshui" value="0"><eq name="list.payStatus" value="0"><font class="am-fr" color="red">未支付</font></eq></eq></div>
		<div class="am-panel-bd">
			<li class="orderInfo">
				<p class="pic"><a href="<{:U('Store/view',array('id'=>$list['shop']['pid']))}>"><img src="<{$list.shop.picname}>"></a></p>
				<p class="info"><a href="<{:U('Store/view',array('id'=>$list['shop']['pid']))}>"><{$list.shop.pname}></a><br/>
					单价：<{$list.shop.price}><br/>
					数量：<{$list.shop.number}>
				</p>
			</li>

			<div class="orderDetail">
				<p>提交日期：<{$list.createTime|date='Y-m-d H:i:s',###}></p>
				<eq name="list.chechuanshui" value="0">
				<p>车船税：<font color="red"><{$list.money}>元</font><eq name="list.payStatus" value="1">(已支付)</eq></p>
				<eq name="list.payStatus" value="0">
				<p><select class="repay" name="payType" id="payType">
					<option value="">支付方式</option>
					<option value="1" <eq name="list.payType" value="1">selected</eq>>支付宝(手机版)</option>
					<option value="2" <eq name="list.payType" value="2">selected</eq>>微信支付</option>
				</select>
				<button class="am-btn am-btn-danger am-btn-xs" onclick="payto('<{$list['bx_no']}>')">重新支付</button></p>
				</eq>
				</eq>
				<p>状态：<eq name="list.status" value="0"><font color="red">处理中</font><else/>已处理</eq></p>
				<p>收件人：<{$list.name}>，<{$list.mobile}></p>
				<p>地址：<{$list.address}></p>
				<p>发动机号：<{$list.enCode}></p>
				<p>车架号：<{$list.carCode}></p>
				<p>排量：<{$list.pailiang}>L</p>
				<p>上牌时间：<{$list.buyDate}></p>
			</div>
			
			<eq name="list.shangpai" value="0">
			<div class="am-form-group">
		        <label>车辆合格证</label>
		        <div class="am-g">
		        	<div class="am-u-sm-6">
		        		<div class="card"><img src="<{$list['card5']}>"></div>
		        	</div>
		        </div>
		    </div>
		    </eq>

			<div class="am-form-group">
		        <label>行车证</label>
		        <div class="am-g">
		        	<div class="am-u-sm-6">
		        		<div class="card"><img src="<{$list['card1']}>"></div>
		        	</div>
		        	<div class="am-u-sm-6">
		        		<div class="card"><img src="<{$list['card2']}>"></div>
		        	</div>
		        </div>
		    </div>

		    <div class="am-form-group">
		        <label>身份证</label>
		        <div class="am-g">
		        	<div class="am-u-sm-6">
		        		<div class="card"><img src="<{$list['card3']}>"></div>
		        	</div>
		        	<div class="am-u-sm-6">
		        		<div class="card"><img src="<{$list['card4']}>"></div>
		        	</div>
		        </div>
		    </div>		
		</div>
	</div>
</div>

<script>
function payto(order_no){
	var $payType = $("#payType").val();
	if ($payType==1){
		location.href ="index.php?m=Bxalipay&a=index&bx_no="+order_no;
	}else if($payType==2){
		location.href ="index.php?m=Bxpay&a=index&single_orderid="+order_no;
	}else{
		_alert('请选择支付方式');
	}
}
</script>

<div class="footerBox"> <include file="Public:menu_member" /> </div>
